const demos = require('../app/controller/demo')

module.exports = function(app) {
    //index
    app.get('/', demos.list)

    //server sent event
    app.get('/server_sent', demos.server_sent)
    app.get('/receive', demos.receive)

    //websocket
    app.get('/websocket', demos.websocket)
}
